package com.git.androidwy;

import androidx.appcompat.app.AppCompatActivity;

import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;

import com.git.androidwy.UI.splitView.SplitViewActivity;
import com.git.androidwy.UI.transform.CanvasTransfromActivity;

public class MainActivity extends AppCompatActivity implements View.OnClickListener{

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);
        initView();
    }
    private void initView(){
        Button btn_splitView = findViewById(R.id.btn_splitView);
        Button btn_transformView = findViewById(R.id.btn_transformView);
        btn_splitView.setOnClickListener(this);
        btn_transformView.setOnClickListener(this);
    }
    @Override
    public void onClick(View v) {
        switch (v.getId()){
            case R.id.btn_splitView:
                startActivity(new Intent(MainActivity.this, SplitViewActivity.class));
                break;
            case R.id.btn_transformView:
                startActivity(new Intent(MainActivity.this, CanvasTransfromActivity.class));
                break;
            default:
                break;
        }
    }
}
